<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>编辑商品</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  #parse('/headFiles.html')
</head>
<body>
<div class="layui-fluid layui-form">
  <input type="hidden" name="id" value="$!{id}"/>
  <div class="layui-card">
    <div class="layui-card-header">商品基础信息</div>
    <div class="layui-card-body">
      <div class="layui-row">
        <div class="layui-col-sm4">
          <h5>缩列图</h5>
          <div style="width:150px;max-height:150px;overflow:hidden;"><img src="$!{resDomain}$!{thumbnailImg}" style="width:100%;"></div>
        </div>
        <div class="layui-col-sm8">
          <h5>展示图</h5>
          #foreach($item in $imgPaths)
          <div style="width:150px;max-height:150px;overflow:hidden;display:inline-block;"><img src="$!{item}" style="width:100%;"></div>
          #end
        </div>
      </div>
      <div class="layui-row">
        <div class="layui-col-sm4">
          <div class="layui-form-item">
            <label class="layui-form-label">商品ID</label>
            <div class="layui-form-mid layui-word-aux">$!{id}</div>
          </div>
        </div>
        <div class="layui-col-sm4">
          <div class="layui-form-item">
            <label class="layui-form-label">供货商</label>
            <div class="layui-form-mid layui-word-aux">$!{supplierName}</div>
          </div>
        </div>
        <div class="layui-col-sm4">
          <div class="layui-form-item">
            <label class="layui-form-label">状态</label>
            <div class="layui-form-mid layui-word-aux">
              #if($state == 1)
              <span class="layui-badge layui-bg-green">$!{stateName}</span>
              #elseif($state == 2)
              <span class="layui-badge layui-bg-orange">$!{stateName}</span>
              #elseif($state == 3)
              <span class="layui-badge">$!{stateName}</span>
              #else
              $!{stateName}
              #end
            </div>
          </div>
        </div>
      </div>
      <div class="layui-row">
        <div class="layui-col-sm8">
          <div class="layui-form-item">
            <label class="layui-form-label">商品名称</label>
            <div class="layui-form-mid layui-word-aux">$!{name}</div>
          </div>
        </div>
        <div class="layui-col-sm4">
          <div class="layui-form-item">
            <label class="layui-form-label">商品分类</label>
            <div class="layui-form-mid layui-word-aux">$!{classifyName}</div>
          </div>
        </div>
      </div>
      <div class="layui-row">
        <div class="layui-col-sm6">
          <div class="layui-form-item">
            <label class="layui-form-label">商品类型</label>
            <div class="layui-form-mid layui-word-aux">$!{typeNames}</div>
          </div>
        </div>
        <div class="layui-col-sm4">
          <div class="layui-form-item">
            <label class="layui-form-label">价格</label>
            <div class="layui-form-mid layui-word-aux">$!{payMoneyStr}元</div>
          </div>
        </div>
      </div>
      <div class="layui-row">
        <div class="layui-col-sm6">
          <div class="layui-form-item">
            <label class="layui-form-label">促销标签</label>
            #if($labels)
            <div class="layui-form-mid layui-word-aux">$!{labels}</div>
            #else
            <div class="layui-form-mid layui-word-aux">--</div>
            #end
          </div>
        </div>
      </div><!-- /.layui-row -->
    </div><!-- /.layui-card-body -->
  </div><!-- /.layui-card -->
  <div class="layui-card">
    <div class="layui-card-header">详情图</div>
    <div class="layui-card-body">
      #foreach($item in $detailImgPaths)
      <div style="width:150px;max-height:150px;overflow:hidden;display:inline-block;"><img src="$!{item}" style="width:100%;"></div>
      #end
    </div>
  </div>
  #if($hasGoodsSpace)
  <div class="layui-card">
    <div class="layui-card-header">商品规格列表</div>
    <div class="layui-card-body">
      <table id="LAY-table" lay-filter="LAY-table"></table>
    </div>
  </div>
  #end
  <div class="layui-form-item layui-hide">
    <input type="button" lay-submit lay-filter="LAY-form-submit" id="LAY-form-submit" value="确认">
  </div>
</div>
#parse('/footFiles.html')
<script>
layui.config({
  base: '$!{webRoot}/layuiadmin/'
  ,webRoot:'$!{webRoot}'
  ,resDomain:'$!{resDomain}'
}).extend({
  index: 'lib/index'
  ,cloud_goods_info:'market/cloud/cloud_goods_info'
}).use(['index', 'form', 'cloud_goods_info'])
</script>
</body>
</html>